Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ARM64 build environment #467

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

EmbeddedAndroid
Copy link
Contributor

As powerful arm64 laptops enter the market, it may be useful to build LmP and other yocto variants on arm64.

Here are the changes needed to support building on arm64, along with x86-64.

Wasn't sure if we needed - b4f87e2 anymore, and I've moved this to libc6-dev.

Copy link
Member

@doanac doanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm all for this. we might have to change the CI flow to build a multi-arch container as well

Dockerfile Outdated
RUN file /bin/bash | grep -q aarch64 && echo arm64 > /tmp/arch || true

RUN wget -P /tmp https://go.dev/dl/go1.18.linux-$(cat /tmp/arch).tar.gz && \
tar -C /usr/local -xzf /tmp/go1.18.linux-$(cat /tmp/arch).tar.gz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mind blown

@ricardosalveti
Copy link
Member

+1 for the change, mind breaking it in two commits? One for removing libc6-dev-i386 and the other to update the go-lang logic?

@EmbeddedAndroid EmbeddedAndroid changed the title RFC: Enable ARM64 build environment Enable ARM64 build environment Nov 5, 2024
@EmbeddedAndroid
Copy link
Contributor Author

I broke this PR down into multiple commits. I'm open to a better way to detect host architecture, as using file hacky but works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants